package com.crazy.crypto.common;

import javax.xml.bind.DatatypeConverter;

@SuppressWarnings("restriction")
public class CommonUtil {

	public static String bytesToHex(byte[] src){  
		return DatatypeConverter.printHexBinary(src);
	}
	
	public static byte[] hexToBytes(String hex) {  
        return DatatypeConverter.parseHexBinary(hex); 
    }  
  
}
